From 5d3c70654cff15d02edcac6fa12817618af97f73 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 13 Dec 2007 09:29:21 +0000 Subject: [PATCH] hvm: Fix mistake in timer cleanup. Spotted by Dexuan Cui Signed-off-by: Keir Fraser --- xen/arch/x86/hvm/vpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c index 45c9350226..2879a66d55 100644 --- a/xen/arch/x86/hvm/vpt.c +++ b/xen/arch/x86/hvm/vpt.c @@ -53,8 +53,8 @@ static int pt_irq_masked(struct periodic_time *pt) if ( pt->source == PTSRC_lapic ) { struct vlapic *vlapic = vcpu_vlapic(v); - return (vlapic_enabled(vlapic) && - !(vlapic_get_reg(vlapic, APIC_LVTT) & APIC_LVT_MASKED)); + return (!vlapic_enabled(vlapic) || + (vlapic_get_reg(vlapic, APIC_LVTT) & APIC_LVT_MASKED)); } isa_irq = pt->irq; -- 2.30.2